package com.javaQQ;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class QQServer {
	private ServerSocket ss;
	private int port=5500;
	public void start(){
		try {
			ss=new ServerSocket(port);
			while(true){
				Socket incoming = ss.accept();
				new MyFrame("server",incoming);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}finally{
			if(ss!=null)
				try {
					ss.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
		}
	}
}